<template>
  <div class="sub-banner">
    <div class="left">
      <div class="top">
        <img src="tj (1).png" alt="" />
        <span class="title">特价好货直播中</span>
      </div>
      <div class="bottom">
        <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
          <van-swipe-item>
            <img src="banner1.jpg" alt="" />
          </van-swipe-item>
          <van-swipe-item>
            <img src="banner2.jpg" alt="" />
          </van-swipe-item>
          <van-swipe-item>
            <img src="banner3.jpg" alt="" />
          </van-swipe-item>
        </van-swipe>
      </div>
    </div>
    <div class="right">
      <div class="top">
        <img src="tj (2).png" alt="" />
        <span class="title">权威排行榜</span>
      </div>
      <div class="bottom">
          <div class="bottom-l">
            <router-link to="/Insurance">
              <img src="right1.jpg" alt="">
              <p>华东赏秋酒店</p></router-link>
          </div>
          <div class="bottom-r">
            <router-link to="/Insurance">
              <img src="right2.jpg" alt="">
              <p>华东演出景点</p></router-link>
          </div>
      </div>
    </div>
  </div>
</template>

<script>
import Vue from "vue";
import { Swipe, SwipeItem } from "vant";

Vue.use(Swipe);
Vue.use(SwipeItem);
export default {};
</script>

<style scoped>
.sub-banner {
  width: 100%;
  height: 1.68rem;
  display: flex;
  background-color: #f4f4f4;
  padding: 0.1rem 0;
  justify-content: space-between;
}
.left,
.right {
  padding: 0.08rem 0.02rem 0;
  width: 49%;
  height: 1.48rem;
  border-radius: 8px;
  background-color: #fff;
}
.top {
  width: 100%;
  height: 0.2rem;
}
.top img {
  width: 0.7rem;
  height: 0.2rem;
  vertical-align: middle;
}
.left .top .title {
  border-radius: 2px;
  color: #ff4607;
  background-color: #ffede3;
  margin-left: 0.1rem;
}
.left .bottom {
  margin-top: 0.06rem;
  width: 100%;
  height: 1.06rem;
  overflow: hidden;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  float: left;
  line-height: 150px;
  text-align: center;
}
.bottom .my-swipe img {
  width: 1.65rem;
  height: 1.06rem;
}
.right .top .title{
   color: #ae6e15;
   background-color: #fdefd2;
   margin-left: .25rem;
}
.right .bottom{
  margin-top: 0.06rem;
  width: 100%;
  height: 1.06rem;
  display: flex;
  justify-content: space-between;
}
.right .bottom .bottom-l,.right .bottom .bottom-r{
  width: 49.5%;
  height: 100%;
}
.right .bottom .bottom-l img,.right .bottom .bottom-r img{
    width: 100%;
    height: .84rem;
}
.right .bottom .bottom-l p,.right .bottom .bottom-r p{
    text-align: left;
    transform: scale(0.833);
    font-size: .08rem;
}
</style>